package com.goldfish666.remote_control.exception;

import com.goldfish666.remote_control.enums.ResultCodeEnum;

public class DataNotFoundException extends BizException {
    /**
     * 初始化一个 DataNotFoundException 实例
     */
    public DataNotFoundException() {
        this("指定数据未找到");
    }

    /**
     * 初始化一个 DataNotFoundException 实例
     *
     * @param dataName 未找到的数据名称
     */
    public DataNotFoundException(String dataName) {
        super(dataName, ResultCodeEnum.DataNotFound);
    }

}